package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 机构对象 sys_inst
 * 
 * @author ruoyi
 * @date 2025-03-08
 */
public class SysInst extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 父级 */
    @Excel(name = "父级")
    private Long parentId;

    /** 机构名称 */
    @Excel(name = "机构名称")
    private String instName;

    /** 机构代码 */
    @Excel(name = "机构代码")
    private String instCode;

    /** 组织ID */
    @Excel(name = "组织ID")
    private String orgId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }

    public void setInstName(String instName) 
    {
        this.instName = instName;
    }

    public String getInstName() 
    {
        return instName;
    }

    public void setInstCode(String instCode) 
    {
        this.instCode = instCode;
    }

    public String getInstCode() 
    {
        return instCode;
    }

    public void setOrgId(String orgId) 
    {
        this.orgId = orgId;
    }

    public String getOrgId() 
    {
        return orgId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("parentId", getParentId())
            .append("instName", getInstName())
            .append("instCode", getInstCode())
            .append("orgId", getOrgId())
            .toString();
    }
}
